package com.hliushi.learn.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


/**
 * TFile
 *
 * @author auto generated
 * @date 2021-08-17 11:02:03
 */
@Data
@Entity
@Table(name = "t_file")
@NoArgsConstructor
public class TFile implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * id
     * nullable : false
     * default  : null
     */
    @Id
    @Column(name = "id", nullable = true, length = 11)
    private String id;

    /**
     * name
     * nullable : true
     * default  : null
     */
    @Column(name = "name", nullable = true, length = 255)
    private String name;

    /**
     * type
     * nullable : true
     * default  : null
     */
    @Column(name = "type", nullable = true, length = 255)
    private String type;

    /**
     * content
     * nullable : true
     * default  : null
     */
    @Column(name = "content", nullable = true, length = 255)
    private String content;

    /**
     * backedUp
     * nullable : true
     * default  : null
     */
    @Column(name = "backed_up", nullable = true, length = 1)
    private Boolean backedUp;

    public TFile(String id, String name, String type, String content) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.content = content;
    }
}
